<?php

namespace Ignus\View\Node\Expression\Binary;

use Ignus\View\Node\Expression\Binary;
use Ignus\View\Compiler;

class FloorDiv extends Binary
{
    public function compile(Compiler $compiler)
    {
        $compiler->raw('intval(floor(');
        parent::compile($compiler);
        $compiler->raw('))');
    }

    public function operator(Compiler $compiler)
    {
        return $compiler->raw('/');
    }
}
